import numpy as np

# import pandas as pd

dataX = np.array([[1, 1, 1, 1],
                  [2, 2, 2, 2],
                  [3, 3, 3, 3],
                  [4, 4, 4, 4]])


dataX = np.array([[1, 1, 1],
                  [2, 2, 2],
                  [3, 3, 3]])

print('-----------行均值------------')
print(np.mean(dataX, axis=1))

print('-----------列均值------------')
print(np.mean(dataX, axis=0))
